<?php
Globals::requireClass('Table');

class OrderTable extends Table
{
	public static $defaultConfig = array(
		'table' => 'tb_order'
	);
        
        public function start(){
            $sql = 'START TRANSACTION';
            $this->database->query($sql);
        }
        
        public function back(){
            $sql = 'ROLLBACK';
            $this->database->query($sql);
        }
        
        public function COMMIT(){
            $sql = 'COMMIT';
            $this->database->query($sql);
        }

}

Config::extend('OrderTable', 'Table');
